<%--
  Created by IntelliJ IDEA.
  User: 张思成
  Date: 2022/4/29
  Time: 13:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    Object o=session.getAttribute("username");
    if (o==null){
        //没有登录
        response.sendRedirect("login_session.jsp");
    }
%>
  欢迎您!,${username}<a href="logoutServlet">退出</a>
<%--<%--%>
<%--    //必须一次性获取该网站所有的cookie，不能一个一个获取--%>
<%--    Cookie[] cookies=request.getCookies();--%>
<%--    if (cookies!=null){--%>
<%--            for (Cookie cookie:cookies){--%>
<%--                out.print(cookie.getName()+":"+cookie.getValue());--%>
<%--            }--%>
<%--    }--%>
<%--%>--%>
</body>
</html>
